<template>
  <div class="lotbox">
    <div class="bigbox" v-for="item in golotbox" :key="item.id">
      <h3>{{item.name}}</h3>
      <div class="smallbox">
        <product-show v-for="content in item.goodsList" :key="content.id" :obj="content"></product-show>
      </div>
    </div>
  </div>
</template>

<script>
import ProductShow from '@/components/ProductShow'
export default {
  props: ["golotbox"],
  components : {
    ProductShow
  }
};
</script>

<style lang="less" scoped>
.bigbox {
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #fff;
  h3 {
    padding: 10px;
    text-align: center;
  }
  .smallbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    .content {
      width: 49%;
      // display: inline-block;
      // display: flex;
      float: left;
      img {
        width: 100%;
      }
      ul {
        text-align: center;
        li {
          // display: flex;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box; //作为弹性伸缩盒子模型显示。
          -webkit-box-orient: vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
          -webkit-line-clamp: 1; //显示的行
          line-height: 1.6666em;
        }
        li:nth-of-type(2) {
          color: darkred;
        }
      }
    }
  }
}
</style>